package src.lab04.test01;

/**
 * Created by 阿阿阿阿豪丶 on 2017/12/1.
 */
public class HelloWorldRunnable implements Runnable{
    //实现接口
    @Override
    public void run() {
        while(true){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("hello,world!");
        }
    }
}